class yuejiesuanbean {
  bool success;
  String message;
  int code;
  Result result;
  int timestamp;

  yuejiesuanbean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  yuejiesuanbean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    result =
    json['result'] != null ? new Result.fromJson(json['result']) : null;
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.toJson();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String companyName;
  List<SettlementMonthReportDtoList> settlementMonthReportDtoList;

  Result({this.companyName, this.settlementMonthReportDtoList});

  Result.fromJson(Map<String, dynamic> json) {
    companyName = json['companyName'];
    if (json['settlementMonthReportDtoList'] != null) {
      settlementMonthReportDtoList = new List<SettlementMonthReportDtoList>();
      json['settlementMonthReportDtoList'].forEach((v) {
        settlementMonthReportDtoList
            .add(new SettlementMonthReportDtoList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['companyName'] = this.companyName;
    if (this.settlementMonthReportDtoList != null) {
      data['settlementMonthReportDtoList'] =
          this.settlementMonthReportDtoList.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class SettlementMonthReportDtoList {
  String number;
  String userName;
  double caloriesSold;
  String price;
  double salesAmount;
  int rechargeTimes;
  double rechargeAmount;
  double balance;
  double remain;
  String month;

  SettlementMonthReportDtoList(
      {this.number,
        this.userName,
        this.caloriesSold,
        this.price,
        this.salesAmount,
        this.rechargeTimes,
        this.rechargeAmount,
        this.balance,
        this.remain,
        this.month});

  SettlementMonthReportDtoList.fromJson(Map<String, dynamic> json) {
    number = json['number'];
    userName = json['userName'];
    caloriesSold = json['caloriesSold'];
    price = json['price'];
    salesAmount = json['salesAmount'];
    rechargeTimes = json['rechargeTimes'];
    rechargeAmount = json['rechargeAmount'];
    balance = json['balance'];
    remain = json['remain'];
    month = json['month'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['number'] = this.number;
    data['userName'] = this.userName;
    data['caloriesSold'] = this.caloriesSold;
    data['price'] = this.price;
    data['salesAmount'] = this.salesAmount;
    data['rechargeTimes'] = this.rechargeTimes;
    data['rechargeAmount'] = this.rechargeAmount;
    data['balance'] = this.balance;
    data['remain'] = this.remain;
    data['month'] = this.month;
    return data;
  }
}
